home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / gfx / x11 / x3270_3_2_16.lha / amiga_src / CmeLineP.h < prev    next >
C/C++ Source or Header  |  2007-03-01  |  3KB  |  102 lines

  1. /*
  2.  * (from) $XConsortium: SmeLineP.h,v 1.3 89/12/11 15:20:20 kit Exp $
  3.  *
  4.  * Modifications Copyright 1995, 1999 by Paul Mattes.
  5.  *  Permission to use, copy, modify, and distribute this software and its
  6.  *  documentation for any purpose and without fee is hereby granted,
  7.  *  provided that the above copyright notice appear in all copies and that
  8.  *  both that copyright notice and this permission notice appear in
  9.  *  supporting documentation.
  10.  *
  11.  * Copyright 1989 Massachusetts Institute of Technology
  12.  *
  13.  * Permission to use, copy, modify, distribute, and sell this software and its
  14.  * documentation for any purpose is hereby granted without fee, provided that
  15.  * the above copyright notice appear in all copies and that both that
  16.  * copyright notice and this permission notice appear in supporting
  17.  * documentation, and that the name of M.I.T. not be used in advertising or
  18.  * publicity pertaining to distribution of the software without specific,
  19.  * written prior permission.  M.I.T. makes no representations about the
  20.  * suitability of this software for any purpose.  It is provided "as is"
  21.  * without express or implied warranty.
  22.  *
  23.  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  24.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
  25.  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  26.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  27.  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
  28.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  29.  *
  30.  * Author:  Chris D. Peterson, MIT X Consortium
  31.  */
  32.  
  33. /* 
  34.  * CmeLineP.h - Private definitions for CmeLine widget
  35.  * (from) SmeLineP.h - Private definitions for SmeLine widget
  36.  * 
  37.  */
  38.  
  39. #ifndef _XawCmeLineP_h
  40. #define _XawCmeLineP_h
  41.  
  42. /***********************************************************************
  43.  *
  44.  * CmeLine Widget Private Data
  45.  *
  46.  ***********************************************************************/
  47.  
  48. #include "CmeP.h"
  49. #include "CmeLine.h"
  50.  
  51. /************************************************************
  52.  *
  53.  * New fields for the CmeLine widget class record.
  54.  *
  55.  ************************************************************/
  56.  
  57. typedef struct _CmeLineClassPart {
  58.   XtPointer extension;
  59. } CmeLineClassPart;
  60.  
  61. /* Full class record declaration */
  62. typedef struct _CmeLineClassRec {
  63.     RectObjClassPart    rect_class;
  64.     CmeClassPart    cme_class;
  65.     CmeLineClassPart    cme_line_class;
  66. } CmeLineClassRec;
  67.  
  68. extern CmeLineClassRec cmeLineClassRec;
  69.  
  70. /* New fields for the CmeLine widget record */
  71. typedef struct {
  72.     /* resources */
  73.     Pixel foreground;        /* Foreground color. */
  74.     Pixmap stipple;        /* Line Stipple. */
  75.     Dimension line_width;    /* Width of the line. */
  76.  
  77.     /* private data.  */
  78.  
  79.     GC gc;            /* Graphics context for drawing line. */
  80. } CmeLinePart;
  81.  
  82. /****************************************************************
  83.  *
  84.  * Full instance record declaration
  85.  *
  86.  ****************************************************************/
  87.  
  88. typedef struct _CmeLineRec {
  89.   ObjectPart     object;
  90.   RectObjPart    rectangle;
  91.   CmePart     cme;
  92.   CmeLinePart     cme_line;
  93. } CmeLineRec;
  94.  
  95. /************************************************************
  96.  *
  97.  * Private declarations.
  98.  *
  99.  ************************************************************/
  100.  
  101. #endif /* _XawCmeLineP_h */
  102.